<template>
	<view class="content">
		<image src="../../static/images/home/home-top-bg.png" mode="widthFix" style="width: 100%;">
		</image>
		<view class="info-block">
			<view class="notice-block">
				<view class="examination-item" v-for="(item,index) in examinationList" :key="item.id"
					@click="navigate('/pages/sign_up/sign_up?id='+item.id)">
					<view class="examination-title">
						<view class="name">{{item.title}}</view>
						<view class="application">已截至</view>
					</view>
					<view class="label-item">
						<view class="iconfont icon-dizhi" style="font-size: 40rpx;margin-left: -4rpx;"></view>
						<view class="label">{{item.address}}</view>
					</view>
					<view class="label-item">
						<view class="iconfont icon-shijian"></view>
						<view class="label">{{item.starTime}}至{{item.endTime}}</view>
					</view>
					<view class="label-item">
						<view class="iconfont icon-daojishi"></view>
						<view class="label">{{item.upTime}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				examinationList: [{
						id: 1,
						title: '酒泉市事业单位公开招聘工作人员啦啦啦啦啦啦啦啦',
						address: '酒泉卫校',
						starTime: '2021-01-15 8:30',
						endTime: '2021-01-18 17:00',
						upTime: '已截至'
					},
					{
						id: 2,
						title: '酒泉市事业单位公开招聘工作人员',
						address: '酒泉卫校',
						starTime: '2021-01-15 8:30',
						endTime: '2021-01-18 17:00',
						upTime: '已截至'
					},
					{
						id: 3,
						title: '酒泉市事业单位公开招聘工作人员',
						address: '酒泉卫校',
						starTime: '2021-01-15 8:30',
						endTime: '2021-01-18 17:00',
						upTime: '已截至'
					}
				]
			}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		min-height: 100vh;
		padding-bottom: 30rpx;

		.info-block {
			position: relative;
			padding: 20rpx;
			margin-top: -240rpx;

			.notice-block {
				display: flex;
				flex-direction: column;
				position: relative;

				.examination-item {
					background: #fff;
					margin-top: 30rpx;
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					padding: 30rpx;
					border-radius: 20rpx;
					box-shadow: 0 0 18rpx 0 #dddddd;

					.examination-title {
						display: flex;
						flex-direction: row;
						align-items: center;
						justify-content: space-between;
						border-bottom: 1px solid #eee;
						padding-bottom: 30rpx;

						.name {
							font-size: 30rpx;
							font-weight: bold;
							width: calc(100% - 160rpx);
						}

						.application {
							background-color: #69A6F6;
							color: #fff;
							border-radius: 60rpx;
							padding: 10rpx 14rpx;
							font-size: 30rpx;
						}
					}

					.label-item {
						display: flex;
						flex-direction: row;
						align-items: center;
						padding-top: 30rpx;

						.iconfont {
							color: #2287FC;
							font-size: 30rpx;
							font-weight: bold;
						}

						.label {
							font-size: 28rpx;
							margin-left: 14rpx;
						}
					}
				}
			}
		}
	}
</style>